package com.example;

import de.greenrobot.daogenerator.DaoGenerator;
import de.greenrobot.daogenerator.Entity;
import de.greenrobot.daogenerator.Schema;

public class MyClass {
    public static void main(String[] args) throws  Exception{
        Schema schema = new Schema(1,"com.sita.bluetactivity.MyClass");
        addBindVehicleBt(schema);
        new DaoGenerator().generateAll(schema,"./app/src/main/java");
    }
    private static void addBindVehicleBt(Schema schema){
        Entity bindVehicle = schema.addEntity("BindVehicle");
        bindVehicle.addIdProperty().columnName("_id").primaryKey();
        bindVehicle.addStringProperty("controller_id");
        bindVehicle.addStringProperty("controller_pass");
        bindVehicle.addStringProperty("controller_address");
        bindVehicle.addStringProperty("bodaoid");
        bindVehicle.addStringProperty("isselect");
        bindVehicle.addStringProperty("time");
        bindVehicle.addStringProperty("user_id");
        bindVehicle.implementsSerializable();
    }
}
